package com.softeem.example;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.softeem.list.User;

public class UserTest {

	public static void main(String[] args) {
		
		
		List<User> list = new ArrayList<>();
		list.add(new User("admin", "123", 35,new Date(118, 6, 20)));
		list.add(new User("rose", "123", 23,new Date(118, 6, 30)));
		list.add(new User("jack", "123", 18,new Date(118, 4, 22)));
		list.add(new User("kobe", "123", 16,new Date(118, 5, 16)));
		list.add(new User("curry", "123", 25,new Date(118, 1, 20)));
		
		list.sort(new MyCompare(MyCompare.SORT_BY_REG_TIME));
		
		for (User user : list) {
			System.out.println(user);
		}
		
	}
}
